#region Copyright
/// <copyright>
/// Copyright (c) 2007 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Runtime.InteropServices;
using System.Text;

namespace Osh.Configuration
{
	public interface ITeletextElement : IConfigurationElement
	{
		bool Enabled { get; set; }
	}

	[ClassInterface(ClassInterfaceType.None)]
	public class TeletextElement : ConfigurationElement, ITeletextElement
	{
		public TeletextElement()
		{
		}

		[ConfigurationProperty("enabled")]
		public bool Enabled
		{
			get { return (bool)this["enabled"]; }
			set { this["enabled"] = value; }
		}

		[ConfigurationProperty("defaultLanguage", DefaultValue = 0)]
		public int DefaultLanguage
		{
			get { return (int)this["defaultLanguage"]; }
			set { this["defaultLanguage"] = value; }
		}

	}
}
